import request from '@/utils/request'

// 查询消息类型列表
export function listBasicMessageType(query) {
  return request({
    url: '/system/basicMessageType/list',
    method: 'get',
    params: query
  })
}

// 查询消息类型详细
export function getBasicMessageType(messageTypeId) {
  return request({
    url: '/system/basicMessageType/' + messageTypeId,
    method: 'get'
  })
}

// 新增消息类型
export function addBasicMessageType(data) {
  return request({
    url: '/system/basicMessageType',
    method: 'post',
    data: data
  })
}

// 修改消息类型
export function updateBasicMessageType(data) {
  return request({
    url: '/system/basicMessageType',
    method: 'put',
    data: data
  })
}

// 删除消息类型
export function delBasicMessageType(messageTypeId) {
  return request({
    url: '/system/basicMessageType/' + messageTypeId,
    method: 'delete'
  })
}
